package com.chinasoft.movies.service.impl;

import com.chinasoft.movies.mapper.Top10MoviesInGenreMapper;
import com.chinasoft.movies.pojo.Top10MoviesInGenre;
import com.chinasoft.movies.service.Top10MoviesInGenreService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Top10MoviesInGenreServiceImpl implements Top10MoviesInGenreService {

    @Autowired
    private Top10MoviesInGenreMapper top10MoviesInGenreMapper;

    @Override
    public List<Top10MoviesInGenre> queryTop10MoviesInGenre(String genre){
        return top10MoviesInGenreMapper.queryTop10MoviesInGenre(genre);
    }
}
